<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>编辑资产信息</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    }

    body {
      background: linear-gradient(135deg, #F5F7FA 0%, #E8F4FD 100%);
      color: #333333;
      min-height: 100vh;
      line-height: 1.6;
    }

    /* 顶部导航栏 */
    .header {
      background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
      color: white;
      padding: 20px;
      position: relative;
      min-height: 80px;
      display: flex;
      align-items: center;
      box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    }

    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .back-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-50%) scale(1.1);
    }

    .header-title {
      font-size: 20px;
      font-weight: 600;
      text-align: center;
      flex: 1;
      letter-spacing: 0.5px;
    }

    /* 内容区域 */
    .content-container {
      background-color: white;
      margin: 20px 0;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    /* 表单区域 */
    .form-container {
      padding: 25px;
    }

    /* 主标题 */
    .main-title {
      font-size: 20px;
      font-weight: 600;
      color: #333;
      margin-bottom: 25px;
      letter-spacing: 0.5px;
      position: relative;
      padding-left: 15px;
    }

    .main-title::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 20px;
      background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
      border-radius: 2px;
    }

    /* 表单分组 */
    .form-section {
      margin-bottom: 30px;
      padding-bottom: 25px;
      border-bottom: 1px solid #F0F0F0;
    }

    .form-section:last-child {
      border-bottom: none;
      margin-bottom: 0;
    }

    .section-title {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }

    .section-description {
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    /* 添加按钮样式 */
    .add-btn {
      width: 100%;
      padding: 20px;
      border: 2px dashed #E0E0E0;
      border-radius: 12px;
      background-color: #FAFAFA;
      color: #2196F3;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .add-btn:hover {
      border-color: #2196F3;
      background-color: rgba(33, 150, 243, 0.05);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    }

    .add-btn:active {
      transform: translateY(0);
    }

    .add-icon {
      margin-right: 8px;
      font-size: 18px;
      font-weight: bold;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
      .header {
        padding: 15px;
        min-height: 70px;
      }

      .header-title {
        font-size: 18px;
      }

      .content-container {
        margin: 15px 0;
      }

      .form-container {
        padding: 20px;
      }

      .main-title {
        font-size: 18px;
        margin-bottom: 20px;
      }

      .form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
      }

      .section-title {
        font-size: 16px;
      }

      .section-description {
        font-size: 13px;
      }

      .add-btn {
        padding: 18px;
        font-size: 15px;
      }
    }
  </style>
</head>

<body>
  <!-- 顶部导航栏 -->
  <div class="header">
    <button class="back-btn" id="backBtn">
      ←
    </button>
    <div class="header-title">编辑资产信息</div>
  </div>

  <!-- 内容区域 -->
  <div class="content-container">
    <div class="form-container">
      <!-- 主标题 -->
      <div class="main-title">资产信息</div>

      <!-- 银行信息 -->
      <div class="form-section">
        <div class="section-title">银行信息</div>
        <div class="section-description">请输入您使用的银行信息</div>
        <button class="add-btn" id="addBankBtn">
          <span class="add-icon">+</span> 添加银行信息
        </button>
      </div>

      <!-- 借出资金 -->
      <div class="form-section">
        <div class="section-title">借出资金</div>
        <div class="section-description">请输入借出资金信息</div>
        <button class="add-btn" id="addLentMoneyBtn">
          <span class="add-icon">+</span> 添加借出资金信息
        </button>
      </div>

      <!-- 所有物 -->
      <div class="form-section">
        <div class="section-title">所有物</div>
        <div class="section-description">请输入汽车、股票、不动产等所有物信息</div>
        <button class="add-btn" id="addPossessionsBtn">
          <span class="add-icon">+</span> 添加所有物信息
        </button>
      </div>

      <!-- 借入来源 -->
      <div class="form-section">
        <div class="section-title">借入来源</div>
        <div class="section-description">如有借入来源，请输入相关信息</div>
        <button class="add-btn" id="addBorrowingBtn">
          <span class="add-icon">+</span> 添加借入资金信息
        </button>
      </div>
    </div>
  </div>

  <script>
    // 返回按钮点击事件
    document.getElementById('backBtn').addEventListener('click', function () {
      window.location.href = '主页.html';
    });

    // 添加银行信息按钮
    document.getElementById('addBankBtn').addEventListener('click', function () {
      alert('添加银行信息功能');
    });

    // 添加借出资金按钮
    document.getElementById('addLentMoneyBtn').addEventListener('click', function () {
      alert('添加借出资金信息功能');
    });

    // 添加所有物按钮
    document.getElementById('addPossessionsBtn').addEventListener('click', function () {
      alert('添加所有物信息功能');
    });

    // 添加借入来源按钮
    document.getElementById('addBorrowingBtn').addEventListener('click', function () {
      alert('添加借入资金信息功能');
    });
  </script>
</body>

</html>